import request from '@/utils/request'

// 查询面试记录列表
export function listInterviews(query) {
  return request({
    url: '/interviews/interviews/list',
    method: 'get',
    params: query
  })
}

// 查询面试记录详细
export function getInterviews(interviewId) {
  return request({
    url: '/interviews/interviews/' + interviewId,
    method: 'get'
  })
}

// 新增面试记录
export function addInterviews(data) {
  return request({
    url: '/interviews/interviews',
    method: 'post',
    data: data
  })
}

// 修改面试记录
export function updateInterviews(data) {
  return request({
    url: '/interviews/interviews',
    method: 'put',
    data: data
  })
}

// 删除面试记录
export function delInterviews(interviewId) {
  return request({
    url: '/interviews/interviews/' + interviewId,
    method: 'delete'
  })
}

//删除全部的记录
export function deleteAll(){
  return request({
    url:'/interviews/interviews/deleteAll',
    method: 'delete'
  })
}
